{template '_header'}
<div class='page-heading'><h2> {if !empty($item)}编辑发件人模版{else}添加发件人模板{/if} <small>{if !empty($item['sendername'])}编辑【发件人:{$item['sendername']}】{/if}</small></h2></div>
<form id="setform" action="" method="post" class="form-horizontal form-validate">

	<div class="form-group">
		<label class="col-sm-2 control-label must">发件人</label>
		<div class="col-sm-9 col-xs-12">
			{ife 'exhelper.sender' $item}
				<input type='text' class='form-control' name='sendername' value="{$item['sendername']}" data-rule-required='true' />
			{else}
				<div class="form-control-static">{$item['sendername']}</div>
			{/if}
		</div>
	</div>
	
	<div class="form-group">
		<label class="col-sm-2 control-label must">发件人电话</label>
		<div class="col-sm-9 col-xs-12">
			{ife 'exhelper.sender' $item}
				<input type='tel' class='form-control' name='sendertel' value="{$item['sendertel']}" data-rule-required='true' />
			{else}
				<div class="form-control-static">{$item['sendertel']}</div>
			{/if}
		</div>
	</div>
	
	<div class="form-group">
		<label class="col-sm-2 control-label">发件人签名</label>
		<div class="col-sm-9 col-xs-12">
			{ife 'exhelper.sender' $item}
				<input type='text' class='form-control' name='sendersign' value="{$item['sendersign']}" />
			{else}
				<div class="form-control-static">{$item['sendersign']}</div>
			{/if}
		</div>
	</div>
	
	<div class="form-group">
		<label class="col-sm-2 control-label">发件地邮编</label>
		<div class="col-sm-9 col-xs-12">
			{ife 'exhelper.sender' $item}
				<input type='number' class='form-control' name='sendercode' value="{$item['sendercode']}" />
			{else}
				<div class="form-control-static">{$item['sendercode']}</div>
			{/if}
		</div>
	</div>
	
	<div class="form-group">
		<label class="col-sm-2 control-label must">发件城市</label>
		<div class="col-sm-9 col-xs-12">
			{ife 'exhelper.sender' $item}
				<input type='text' class='form-control' name='sendercity' value="{$item['sendercity']}" data-rule-required='true' />
			{else}
				<div class="form-control-static">{$item['sendercity']}</div>
			{/if}
		</div>
	</div>
	
	<div class="form-group">
		<label class="col-sm-2 control-label must">发件地址</label>
		<div class="col-sm-9 col-xs-12">
			{ife 'exhelper.sender' $item}
				<textarea class="form-control valid" name="senderaddress" data-rule-required='true'>{$item['senderaddress']}</textarea>
			{else}
				<div class="form-control-static">{$item['senderaddress']}</div>
			{/if}
		</div>
	</div>
	
	<div class="form-group">
		<label class="col-sm-2 control-label"></label>
		<div class="col-sm-9">
			{ife 'exhelper.sender' $item}
				<input type="submit" value="提交" class="btn btn-primary" />
			{/if}
		</div>
	</div>

</form>

{template '_footer'}